package momo.Tests;

import static org.junit.Assert.*;
import momo.Image;
import org.junit.Test;

/**
 * The test class ImageTest.
 *
 * @author  Mohamed Mosa
 * @version (a version number or a date)
 */
public class ImageTest
{
    /**
     * Default constructor for test class ImageTest
     */
    public ImageTest()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    protected void setUp()
    {
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    protected void tearDown()
    {
    }
 
    @Test
	public void testSetPath()
	{
	    Image image1 = new Image("c:");
	}

    @Test
	public void testGetPath()
	{
		Image image1 = new Image("c:");
		assertEquals("c:", image1.getPath());
	}

    @Test
	public void testSetTag()
	{
		Image image1 = new Image("c:");
		image1.setTag("Lugano");
	}

    @Test
	public void testGetTag()
	{
		Image image1 = new Image("c:");
		assertEquals(null, image1.getTag());
		image1.setTag("Lugano");
		assertEquals("Lugano", image1.getTag());
	}
	
    @Test
	public void testGetNoTag()
	{
	    Image image1 = new Image("c:");
		assertEquals(null, image1.getTag());
    }
}